package global

import (
	"github.com/go-redis/redis/v8"
	"github.com/olivere/elastic/v7"
	amqp "github.com/rabbitmq/amqp091-go"
	"github.com/songzhibin97/gkit/cache/local_cache"
	"github.com/spf13/viper"
	"go.uber.org/zap"
	"go_es/server/config"
	"golang.org/x/sync/singleflight"
	"gorm.io/gorm"
)

var (
	GVA_ES     *elastic.Client
	GVA_CONFIG config.Server
	GVA_LOG    *zap.Logger
	GVA_VP     *viper.Viper
	GVA_DB     *gorm.DB
	GVA_DBList map[string]*gorm.DB
	GVA_MQ    *amqp.Connection
	GVA_REDIS  *redis.Client
	BlackCache local_cache.Cache
	GVA_Concurrency_Control             = &singleflight.Group{}
)
